Loading...
 

CX_VIDEO - Video

CX_VIDEO

Class hierarchy
Description:

This class is used to manage the video files in different file formats (.mpg .mpeg .avi).

Code example:

Module(X)
[
    Var(video)
]
Window(win, 23, 23, 900, 120, "Video")
{
  Menu
  {
    Item(PlayVideo)
    [
        SELECT: CreateTransObject(CX_VIDEO) -> video,
        "d:\\ClassiX\\Bmp\\about.avi" video Call(Open)
        Widget(win, g) video Call(RegisterWindow)
        video Call(Play)
    ]
  }
Group(g, 10, 10, 800, 80, "Video")
}

List of methods (MDI)
Function MA* Parameters Return Brief description
Play Playing a file
RegisterWindow (OBJECT) Log on a file to a widget (it will be played in the widget object passed)
SetRepeating (INTEGER) Play file repeatedly
SetStretching (INTEGER) Extend window (only if the file was registered with RegisterNotify
Open (STRING) Opening a file
Position INTEGER returns the current position of the file pointer
RegisterNotify (OBJECT) Log file to any widget (plays in its own window)
SetVolume (INTEGER) Adjusting the volume
Stop To stop playing a file
ToEnd Position file pointer at the end
ToPosition (INTEGER) Move file pointer to a specific position
ToStart Position file pointer at the beginning
* MA = Member Access Function

Use in AppsWH
Module Brief description